Skip to content

Reduce Vault batch size#1937

Merged
cedric-cordenier merged 1 commit intomainfrom
vault-batch-size
Mar 27, 2026
Merged

Reduce Vault batch size#1937
cedric-cordenier merged 1 commit intomainfrom
vault-batch-size

Conversation

@cedric-cordenier
Copy link
Copy Markdown
Contributor

Requires

Supports

Copilot AI review requested due to automatic review settings March 27, 2026 16:44
@cedric-cordenier cedric-cordenier requested a review from a team as a code owner March 27, 2026 16:44
pavel-raykov
pavel-raykov previously approved these changes Mar 27, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates CRE settings defaults to reduce the Vault OCR plugin batch size, likely to mitigate issues tracked in LINK-777.

Changes:

  • Reduce VaultPluginBatchSizeLimit default from 20 to 1 in the in-code schema defaults.
  • Update the TOML and JSON golden default files to match the new default value.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
pkg/settings/cresettings/settings.go Changes the in-code default for VaultPluginBatchSizeLimit from 20 to 1.
pkg/settings/cresettings/defaults.toml Updates the TOML default value for VaultPluginBatchSizeLimit to 1.
pkg/settings/cresettings/defaults.json Updates the JSON default value for VaultPluginBatchSizeLimit to 1.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -69,7 +69,11 @@ var Default = Schema{
VaultIdentifierKeySizeLimit: Size(64 * config.Byte),
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes a Vault OCR plugin default that the comment above flags as requiring a safe upgrade path (nodes may apply old/new defaults inconsistently during image upgrades). Please ensure deployments override VaultPluginBatchSizeLimit via the on-chain config (or another single source of truth) during rollout, and consider adding a short reference to LINK-777/upgrade notes near this default to prevent accidental unsafe changes later.

Copilot uses AI. Check for mistakes.
@pavel-raykov
Copy link
Copy Markdown
Contributor

Requires

Supports

Approved, but it would be nice to add the rationale behind this PR? (I.e. why 20 is bad, and 1 is better)

bolekk
bolekk previously approved these changes Mar 27, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 27, 2026

📊 API Diff Results

No changes detected for module github.com/smartcontractkit/chainlink-common

View full report

@cedric-cordenier cedric-cordenier added this pull request to the merge queue Mar 27, 2026
Merged via the queue into main with commit 16c179a Mar 27, 2026
31 of 32 checks passed
@cedric-cordenier cedric-cordenier deleted the vault-batch-size branch March 27, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants